using Castle.MonoRail.Framework;
using WineCellar.Data;

namespace WineCellar.Web.Components
{
    public class CellarRowComponent :ViewComponent
    {
        private Cellar cellar;

        public override void Initialize()
        {
            cellar = (Cellar)ComponentParams["cellar"];
            base.Initialize();
        }

        public override void Render()
        {
            PropertyBag["cellar"] = cellar;            
            base.Render();
        }
    }
}
